export default {

	toFriendRequset(){
		let that = this
		that.$httpRequest.get({
			that: that,
			url: 'h5/searchUserByPhone',
			params: {
				phone:that.phone,
			},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					if(!res.data){
						that.isEmpty = true
					}else{
						uni.navigateTo({
							url:'/pages/index/friendRequest?phone='+that.phone
						})
						that.isEmpty = false
					}
						
				}
			
			}
		})
		
	}





}
